function Person(name,age){
    this.name = name;
    this.age = age;
    this.sayName = function(){
        console.log("my name is ",this.name);
    }
}
var p1 = new Person("moyu",12);
var p2 = new Person("momo",23);
var p3 = {name:"tom",age:24,sayName:function(){console.log("my name is ",this.name)}};
console.log(p1 instanceof Person);
console.log(p2 instanceof Person);
console.log(p3.sayName());
console.log(p1.sayName === p2.sayName);
